/* 概念页面样式 */
.concepts {
  min-height: calc(100vh - 140px);
  /* 减去Header和Footer的高度 */
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.concepts-header {
  text-align: center;
  margin-bottom: 50px;
}

.concepts-header h1 {
  font-size: 2.5rem;
  color: #1a237e;
  margin-bottom: 15px;
}

.concepts-header p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* 标签页样式 */
.tabs-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  overflow-x: auto;
  scrollbar-width: thin;
  /* Firefox */
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background-color: #90caf9;
  border-radius: 2px;
}

.tab {
  padding: 15px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.tab:hover {
  color: #1a237e;
  background-color: rgba(144, 202, 249, 0.1);
}

.tab.active {
  color: #1a237e;
  background-color: white;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #64b5f6;
}

/* 标签内容样式 */
.tab-content {
  padding: 30px;
}

.tab-pane h2 {
  color: #1a237e;
  margin-bottom: 10px;
}

.tab-pane h1 {
  color: orangered;
  margin-bottom: 10px;
}

.tab-pane h3 {
  color: #29f;
  margin-bottom: 10px;
}

.tab-pane p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

/* 代码示例样式 */
.code-example {
  background-color: #263238;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
}

.code-example code {
  color: #eeffff;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 列表样式 */
.tab-pane ul {
  padding-left: 20px;
  margin: 20px 0;
}

.tab-pane li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .concepts {
    padding: 20px 15px;
  }

  .concepts-header h1 {
    font-size: 2rem;
  }

  .tabs {
    flex-wrap: nowrap;
  }

  .tab {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 20px;
  }
}